<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class DbIbase</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
						<script src="../../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../../media/images/plus.png";
				imgMinus.src = "../../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class DbIbase</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-vars">Vars</a>
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Firebird数据库驱动类 剑雷 2007.12.28</p>
	<ul class="tags">
				<li><span class="field">author:</span> liu21st &lt;<a href="mailto:liu21st@gmail.com">liu21st@gmail.com</a>&gt;</li>
				<li><span class="field">version:</span> $Id$</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_Think---Db---Driver---DbIbase.class.php.html">/Think/Db/Driver/DbIbase.class.php</a> (line <span class="field">24</span>)
		</p>
		
				
		<pre><a href="../../Think/Core/Base.html">Base</a>
   |
   --<a href="../../Think/Db/Db.html">Db</a>
      |
      --DbIbase</pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-vars">Vars</a>
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																																																						
				<div class="method-definition">
											<span class="method-result">DbIbase</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type">array</span>&nbsp;<span class="var-name">$config</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">二进制数据</span>
										<a href="#BlobDecode" title="details" class="method-name">BlobDecode</a>
											(<span class="var-type">$blob</span>&nbsp;<span class="var-name">$blob</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#close" title="details" class="method-name">close</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolen</span>
										<a href="#commit" title="details" class="method-name">commit</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#connect" title="details" class="method-name">connect</a>
											([<span class="var-type"></span>&nbsp;<span class="var-name">$config</span> = <span class="var-default">''</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$linkNum</span> = <span class="var-default">0</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#error" title="details" class="method-name">error</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#escape_string" title="details" class="method-name">escape_string</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#free" title="details" class="method-name">free</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getAll" title="details" class="method-name">getAll</a>
											([<span class="var-type"></span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$resultType</span> = <span class="var-default">null</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#getFields" title="details" class="method-name">getFields</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$tableName</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">array</span>
										<a href="#getRow" title="details" class="method-name">getRow</a>
											([<span class="var-type"></span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">null</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$seek</span> = <span class="var-default">0</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>)
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#getTables" title="details" class="method-name">getTables</a>
											([<span class="var-type"></span>&nbsp;<span class="var-name">$dbName</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolen</span>
										<a href="#next" title="details" class="method-name">next</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">boolen</span>
										<a href="#rollback" title="details" class="method-name">rollback</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#startTrans" title="details" class="method-name">startTrans</a>
										()
									</div>
														
				<div class="method-definition">
											<span class="method-result">integer</span>
										<a href="#_execute" title="details" class="method-name">_execute</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span> = <span class="var-default">''</span>])
									</div>
														
				<div class="method-definition">
											<span class="method-result">resultSet</span>
										<a href="#_query" title="details" class="method-name">_query</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span> = <span class="var-default">''</span>])
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
							<h4>Inherited Variables</h4>
				<A NAME='inherited_vars'><!-- --></A>
									<p>Inherited from <span class="classname"><a href="../../Think/Db/Db.html">Db</a></span></p>
					<blockquote>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$autoCommit">Db::$autoCommit</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$autoFree">Db::$autoFree</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$beginTime">Db::$beginTime</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$comparison">Db::$comparison</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$config">Db::$config</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$connected">Db::$connected</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$dbType">Db::$dbType</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$dbVersion">Db::$dbVersion</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$debug">Db::$debug</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$error">Db::$error</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$fields">Db::$fields</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$lastInsID">Db::$lastInsID</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$linkID">Db::$linkID</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$numCols">Db::$numCols</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$numRows">Db::$numRows</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$pconnect">Db::$pconnect</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$queryID">Db::$queryID</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$queryStr">Db::$queryStr</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$queryTimes">Db::$queryTimes</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$result">Db::$result</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$resultSet">Db::$resultSet</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$resultType">Db::$resultType</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$transTimes">Db::$transTimes</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$writeTimes">Db::$writeTimes</a></span><br>
							</span>
													<span class="var-title">
								<span class="var-name"><a href="../../Think/Db/Db.html#var$_linkID">Db::$_linkID</a></span><br>
							</span>
											</blockquote> 
										
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-vars">Vars</a>
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">35</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">架构函数 读取数据库配置信息</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">DbIbase</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type">array</span>&nbsp;<span class="var-name">$config</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$config</span><span class="var-description">: 数据库配置数组</span>			</li>
				</ul>
		
			<hr class="separator" />
		<div class="notes">Redefinition of:</div>
		<dl>
			<dt><a href="../../Think/Db/Db.html#method__construct">Db::__construct()</a></dt>
						<dd>架构函数</dd>
					</dl>
			
	</div>
<a name="methodBlobDecode" id="BlobDecode"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">BlobDecode</span> (line <span class="line-number">272</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">BLOB字段解密函数 Firebird特有</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">二进制数据</span>
		<span class="method-name">
			BlobDecode
		</span>
					(<span class="var-type">$blob</span>&nbsp;<span class="var-name">$blob</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">$blob</span>
				<span class="var-name">$blob</span><span class="var-description">: 待解密的BLOB</span>			</li>
				</ul>
		
			
	</div>
<a name="methodclose" id="close"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">close</span> (line <span class="line-number">524</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">关闭数据库</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			close
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodcommit" id="commit"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">commit</span> (line <span class="line-number">193</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">用于非自动提交状态下面的查询提交</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolen</span>
		<span class="method-name">
			commit
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodconnect" id="connect"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">connect</span> (line <span class="line-number">55</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">连接数据库方法</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			connect
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$config</span> = <span class="var-default">''</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$linkNum</span> = <span class="var-default">0</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$config</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$linkNum</span>			</li>
				</ul>
		
			
	</div>
<a name="methoderror" id="error"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">error</span> (line <span class="line-number">545</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">数据库错误信息</p>
<p class="description"><p>并显示当前的SQL语句</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			error
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodescape_string" id="escape_string"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">escape_string</span> (line <span class="line-number">566</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">SQL指令安全过滤</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			escape_string
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$str</span><span class="var-description">: SQL字符串</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfree" id="free"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">free</span> (line <span class="line-number">91</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">释放查询结果</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			free
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetAll" id="getAll"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getAll</span> (line <span class="line-number">390</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获得所有的查询数据</p>
<p class="description"><p>查询结果放到 resultSet 数组中</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getAll
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">null</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$resultType</span> = <span class="var-default">null</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$resultType</span><span class="var-description">: 数据集类型</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$sql</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetFields" id="getFields"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getFields</span> (line <span class="line-number">453</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">取得数据表的字段信息</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getFields
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$tableName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$tableName</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetRow" id="getRow"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getRow</span> (line <span class="line-number">313</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获得一条查询结果</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getRow
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$sql</span> = <span class="var-default">null</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$seek</span> = <span class="var-default">0</span>], <span class="var-type">string</span>&nbsp;<span class="var-name">$str</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$seek</span><span class="var-description">: 指针位置</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$str</span><span class="var-description">: SQL指令</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$sql</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetTables" id="getTables"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getTables</span> (line <span class="line-number">504</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">取得数据库的表信息</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			getTables
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$dbName</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$dbName</span>			</li>
				</ul>
		
			
	</div>
<a name="methodnext" id="next"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">next</span> (line <span class="line-number">242</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">获得下一条查询结果 简易数据集获取方法</p>
<p class="description"><p>查询结果放到 result 数组中</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolen</span>
		<span class="method-name">
			next
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodrollback" id="rollback"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">rollback</span> (line <span class="line-number">217</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">事务回滚</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolen</span>
		<span class="method-name">
			rollback
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodstartTrans" id="startTrans"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">startTrans</span> (line <span class="line-number">173</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			startTrans
		</span>
				()
			</div>
	
		
			
	</div>
<a name="method_execute" id="_execute"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">_execute</span> (line <span class="line-number">147</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">执行语句 针对 INSERT, UPDATE 以及DELETE</p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			_execute
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$str</span><span class="var-description">: sql指令</span>			</li>
				</ul>
		
			
	</div>
<a name="method_query" id="_query"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">_query</span> (line <span class="line-number">110</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">执行查询 主要针对 SELECT, SHOW 等指令</p>
<p class="description"><p>返回数据集</p></p>
	<ul class="tags">
				<li><span class="field">throws:</span> ThinkExecption</li>
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">resultSet</span>
		<span class="method-name">
			_query
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$str</span> = <span class="var-default">''</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$str</span><span class="var-description">: sql指令</span>			</li>
				</ul>
		
			
	</div>
							<h4>Inherited Methods</h4>
				<a name='inherited_methods'><!-- --></a>	
									<!-- =========== Summary =========== -->
					<p>Inherited From <span class="classname"><a href="../../Think/Db/Db.html">Db</a></span></p>
					<blockquote>
													<span class="method-name"><a href="../../Think/Db/Db.html#method__construct">Db::__construct()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodadd">Db::add()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodaddAll">Db::addAll()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodaddConnect">Db::addConnect()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodaddSpecialChar">Db::addSpecialChar()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodautoExec">Db::autoExec()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methoddebug">Db::debug()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodexecute">Db::execute()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodfactory">Db::factory()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodfieldFormat">Db::fieldFormat()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodfind">Db::find()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodgetDbType">Db::getDbType()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodgetInstance">Db::getInstance()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodgetLastSql">Db::getLastSql()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodinitConnect">Db::initConnect()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodisMainIps">Db::isMainIps()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodlazyQuery">Db::lazyQuery()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodmultiConnect">Db::multiConnect()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodparseDSN">Db::parseDSN()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodparseFields">Db::parseFields()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodparseGroup">Db::parseGroup()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodparseHaving">Db::parseHaving()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodparseJoin">Db::parseJoin()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodparseLimit">Db::parseLimit()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodparseOrder">Db::parseOrder()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodparseSets">Db::parseSets()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodparseTables">Db::parseTables()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodparseValues">Db::parseValues()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodparseWhere">Db::parseWhere()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodQ">Db::Q()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodquery">Db::query()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodremove">Db::remove()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodsave">Db::save()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodsetDec">Db::setDec()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodsetField">Db::setField()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodsetInc">Db::setInc()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodsetLockMode">Db::setLockMode()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodswitchConnect">Db::switchConnect()</a></span><br>
													<span class="method-name"><a href="../../Think/Db/Db.html#methodW">Db::W()</a></span><br>
											</blockquote>
										
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Thu, 27 Mar 2008 08:20:33 +0000 by 塞北的雪
	</p>
	</div></body>
</html>